package com.java.d1.demo01;

public class ArrayMax {
    public static void main(String[] args) {
        int[] array ={3,45,65,2,78,3,22,1,0,0,1,2};
        int max =array[0];
        for (int i = 1; i < array.length; i++) {

            if (array[i]>max){
                max =array[i];
            }
        }
        System.out.println(max);
    }
}
